package org.yang.reggie.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

/**
 * @author 缘友一世
 * date 2023/5/11-7:51
 */

/**
 *  解决druid 日志报错：discard long time none received connection:xxx
 */
@Slf4j
@Configuration
public class DruidConfig {
    @PostConstruct
    public void setProperties(){
        System.setProperty("druid.mysql.usePingMethod","false");
    }
}
